#include <iostream>
#include <string>

using namespace std;

int arr1[91] = { 0 };
string s1;
string s2;

int main()
{
    cin >> s1;
    cin >> s2;
    for (int i = 0; i < s1.size(); i++)
    {
        arr1[s1[i]]++;
    }
    for (int i = 0; i < s2.size(); i++)
    {
        if (--arr1[s2[i]] < 0)
        {
            cout << "No";
            return 0;
        }
    }

    cout << "Yes";

}